home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / emacs_src_18_58.lha / emacs-18.58 / lisp / tex-start.el < prev    next >
Lisp/Scheme  |  1992-02-21  |  467b  |  12 lines

  1. ; This file is for use by TeX82 (see man page) to allow switching to
  2. ;  Emacs at a line number given on the command line
  3. ; It assumes that it has been called by:
  4. ;    emacs -l tex-start -e startline <linenumber> <file>
  5.  
  6. (defun startline ()
  7.   ;(setq command-line-args (cdr command-line-args))
  8.   (find-file (car (cdr command-line-args-left)))
  9.   (goto-char (point-min))
  10.   (forward-line (1- (string-to-int (car command-line-args-left))))
  11.   (setq command-line-args-left ()))
  12.